import request from '../utils/request';

//登录
export function userLogin(data) {
  return request({
    url: '/user/login?key='+localStorage.getItem('key'),
    method: 'post',
    data:data
  });
}

//修改密码
export function forgotPwd(data) {
  return request({
    url: '/user/forgotPwd',
    method: 'post',
    data:data
  });
}

//用户注册
export function userRegister(data) {
  return request({
    url: '/user/register',
    method: 'post',
    data:data
  });
}

//用户信息
export function userInfo(data) {
  return request({
    url: '/user/myInformation/'+data,
    method: 'get',
  });
}
